package com.bdth.bdthiss.entity;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;

/**
 * <p>
 * 用户操作表
 * </p>
 *
 * @author LGP
 * @since 2019-08-27
 */
@TableName("bdth_userop")
public class Userop implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 操作时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date optime;
    /**
     * 操作人
     */
    private String opname;
    /**
     * 操作类型
     */
    private String optype;
    /**
     * 操作内容
     */
    private String opcontent;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Date getOptime() {
        return optime;
    }

    public void setOptime(Date optime) {
        this.optime = optime;
    }

    public String getOpname() {
        return opname;
    }

    public void setOpname(String opname) {
        this.opname = opname;
    }

    public String getOptype() {
        return optype;
    }

    public void setOptype(String optype) {
        this.optype = optype;
    }

    public String getOpcontent() {
        return opcontent;
    }

    public void setOpcontent(String opcontent) {
        this.opcontent = opcontent;
    }

    public Userop(Date optime, String opname, String optype, String opcontent) {
        this.optime = optime;
        this.opname = opname;
        this.optype = optype;
        this.opcontent = opcontent;
    }

    public Userop() {
    }

    @Override
    public String toString() {
        return "Userop{" +
        ", id=" + id +
        ", optime=" + optime +
        ", opname=" + opname +
        ", optype=" + optype +
        ", opcontent=" + opcontent +
        "}";
    }
}
